<template>
  <div>
    <h2>学校名称：{{ name | mySlice }}</h2>
    <h2>学校地址：{{ address }}</h2>
    <button @click="showProtoInfo">显示原型中的信息</button>
  </div>
</template>

<script>
export default {
  name: "SchoolItem",
  data() {
    return {
      name: "合肥大学",
      address: "HEFEI",
    };
  },
  methods: {
    showProtoInfo() {
      this.hello();
    },
  },
};
</script>

<style></style>
